﻿<%@ Page Language="C#" MasterPageFile="~/users.Master" AutoEventWireup="true" CodeBehind="News.aspx.cs" Inherits="sdamarketing.News" Title="Untitled Page" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="title1PlaceHolder" runat="server">
    <table class="style1">
    <tr>
        <td>
            <asp:TextBox ID="vestText" runat="server" Height="100px" Width="440px" 
                meta:resourcekey="vestTextResource1"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td align="center">
            <br />
            <asp:Button ID="vestButton" runat="server" Height="20px" 
                                onclick="vestButton_Click" Text="Објави вест" 
                Width="100px" meta:resourcekey="vestButtonResource1" />
        </td>
    </tr>
</table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="text1PlaceHolder" runat="server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
    AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
    DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" 
        meta:resourcekey="GridView1Resource1">
    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
    <Columns>
        <asp:BoundField DataField="sodrzina" HeaderText="Содржина" 
            SortExpression="sodrzina" meta:resourcekey="BoundFieldResource1" />
        <asp:BoundField DataField="datum" HeaderText="Објавено на.." 
            SortExpression="datum" meta:resourcekey="BoundFieldResource2" />
    </Columns>
    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <EditRowStyle BackColor="#999999" />
    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
    SelectCommand="SELECT [sodrzina], [datum] FROM [News]"></asp:SqlDataSource>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="mainTitle2PlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="title2PlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="text2PlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content8" runat="server" 
    contentplaceholderid="mainTitle1PlaceHolder">
    <h2 class="title">
                    <asp:Label ID="Label2" runat="server" Text="Новости и известувања&nbsp;" 
                        meta:resourcekey="Label2Resource1"></asp:Label>
    </h2>
                









</asp:Content>

